package com.doodod.api.model.base;

import com.doodod.common.utils.MyConstants;

/**
 * Created with IntelliJ IDEA.
 * User: 邱孝兵
 * Date: 15-2-9
 * Time: 下午4:05
 */
public class ErrorCode {
    // 默认执行成功
    private int errorCode = MyConstants.ErrCode.SUCCESS;
    private String description = MyConstants.ErrCode.SUCCESS_DES;

    public ErrorCode() {
        super();
    }

    public ErrorCode(int errcode, String des) {
        super();
        this.errorCode = errcode;
        this.description = des;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }
}
